/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.swing;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

/**
 *
 * @author WORKSPOT2
 */
public class ButtonPanel extends JPanel
{

    public ButtonPanel()
    {
        addButtons();
    }

    private void addButtons()
    {
        Box nameBlock = Box.createHorizontalBox();
        nameBlock.add(new JLabel("Name: "));
        nameBlock.add(Box.createHorizontalGlue());
        nameBlock.add(new JTextField(10));
        
        Box passBlock = Box.createHorizontalBox();
        passBlock.add(new JLabel("Password: "));
        passBlock.add(Box.createHorizontalGlue());
        passBlock.add(new JPasswordField(10));
        
        Box infoBlock = Box.createVerticalBox();
        infoBlock.add(nameBlock);
        infoBlock.add(passBlock);
        add(infoBlock);
        
    }
}
